adwaita: Remove menu margins
authorLapo Calamandrei <calamandrei@gmail.com>
Fri, 11 Aug 2017 13:07:13 +0000 (15:07 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Fri, 11 Aug 2017 13:07:13 +0000 (15:07 +0200)
menu margins have been added has a hack to mitigate bug:
https://bugzilla.gnome.org/show_bug.cgi?id=591258 with gtk+4 this
doesn't work anymore on gtk+4, the margin should probably be moved
to the parent window node, but it's not selectable, commenting out
for now.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 539d2522f49dc96e30cf8317339fa5489cd185d7..8fde72af8e6551e14b2a20c00ab7beab1cf9b283 100644 (file)
@@ -1922,7 +1922,7 @@ menubar,
 menu,
 .menu,
 .context-menu {
-  margin: 4px; // See https://bugzilla.gnome.org/show_bug.cgi?id=591258
+  // this is not a good solution, commenting out for now margin: 4px; // See https://bugzilla.gnome.org/show_bug.cgi?id=591258
   padding: 2px 0px;
   background-color: $menu_color;
   border: 1px solid $borders_color; // adds borders in a non composited env
index c3514bd3ea83e831d34917e8a97e3cbf56addcb4..e5b73434125daff7fdb985b6e5a5daa8aa06e102 100644 (file)
@@ -773,7 +773,7 @@ menubar > menuitem:hover, .menubar > menuitem:hover { box-shadow: inset 0 -3px #
 
 menubar > menuitem:disabled, .menubar > menuitem:disabled { color: #919494; box-shadow: none; }
 
-menu, .menu, .context-menu { margin: 4px; padding: 2px 0px; background-color: #262b2d; border: 1px solid #1b1f20; }
+menu, .menu, .context-menu { padding: 2px 0px; background-color: #262b2d; border: 1px solid #1b1f20; }
 
 .csd menu, .csd .menu, .csd .context-menu { border: none; }
 
index f1973c0f0b4f429c57d938c2545618b3c3dff616..5257e790829cc419fb57956cd4822df3990de45b 100644 (file)
@@ -781,7 +781,7 @@ menubar > menuitem:hover, .menubar > menuitem:hover { box-shadow: inset 0 -3px #
 
 menubar > menuitem:disabled, .menubar > menuitem:disabled { color: #8b8e8f; box-shadow: none; }
 
-menu, .menu, .context-menu { margin: 4px; padding: 2px 0px; background-color: #ffffff; border: 1px solid #b6b6b3; }
+menu, .menu, .context-menu { padding: 2px 0px; background-color: #ffffff; border: 1px solid #b6b6b3; }
 
 .csd menu, .csd .menu, .csd .context-menu { border: none; }